package com.wh1200.mybatis.xmlless.util

import com.wh1200.mybatis.xmlless.model.base.BaseClassWrapper

/**
 *
 * @author 吴昊
 * @date 2024/1/19 11:21
 * @since v0.0.0
 * @version 1.0
 */
object ClassWrapperProvider {

  fun createClassWrapper(clazz: Class<*>): BaseClassWrapper {
    val wrapperClass = Class.forName("com.wh1200.mybatis.xmlless.JavaClassWrapper")
    return wrapperClass.constructors.first().newInstance(clazz) as BaseClassWrapper
  }

}
